<h2>Edit user <?php echo $user->username; ?></h2>


<?php if(Yii::app()->user->hasFlash('detailsSaved')): ?>
<div class="info"><?php echo Yii::app()->user->getFlash('detailsSaved'); ?></div>
<?php Yii::app()->clientScript->registerScript(
   'myHideEffect',
   '$(".info").animate({opacity: 1.0}, 3000).fadeOut("slow");',
   CClientScript::POS_READY
);
?>
<?php endif; ?>

<div class="form">

<?php echo CHtml::errorSummary($user); ?>

<?php echo CHtml::beginForm(); ?>
<div class="row">
<?php echo CHtml::activeLabel($user,'username'); ?>
<?php echo CHtml::activeTextField($user,'username'); ?>
</div>
<div class="row">
<?php echo CHtml::activeLabel($user,'email'); ?>
<?php echo CHtml::activeTextField($user,'email'); ?>
</div>
<div class="row">
<?php echo CHtml::activeLabel($user,'profile'); ?>
<?php echo CHtml::activeTextArea($user,'profile',array('rows'=>20, 'cols'=>50)); ?>
</div>
<br />
<div class="row">
<?php echo CHtml::submitButton('Save', array('name'=>'submitUser')); ?>
</div>
<?php echo CHtml::endForm(); ?>

</div>